<!--


function selAll()
{
	for(i=0;i<document.form2.yuyueid.length;i++)
	{
		if(!document.form2.yuyueid[i].checked)
		{
			document.form2.yuyueid[i].checked=true;
		}
	}
}
function noSelAll()
{
	for(i=0;i<document.form2.yuyueid.length;i++)
	{
		if(document.form2.yuyueid[i].checked)
		{
			document.form2.yuyueid[i].checked=false;
		}
	}
}
//获得选中文件的文件名
function getCheckboxItem()
{
	var allSel="";
	if(document.form2.yuyueid.value) return document.form2.yuyueid.value;
	for(i=0;i<document.form2.yuyueid.length;i++)
	{
		if(document.form2.yuyueid[i].checked)
		{
			if(allSel=="")
				allSel=document.form2.yuyueid[i].value;
			else
				allSel=allSel+"`"+document.form2.yuyueid[i].value;
		}
	}
	return allSel;
}

//获得选中其中一个的id
function getOneItem()
{
	var allSel="";
	if(document.form2.yuyueid.value) return document.form2.yuyueid.value;
	for(i=0;i<document.form2.yuyueid.length;i++)
	{
		if(document.form2.yuyueid[i].checked)
		{
			allSel = document.form2.yuyueid[i].value;
			break;
		}
	}
	return allSel;
}
function sucyuyue(aid){
	var qstr=getCheckboxItem();
	if(aid==0) aid = getOneItem();
	location="?do=yuyue_admin&qstr="+qstr+"&aid="+aid+"&action=success";
}
function dealyuyue(aid){
	var qstr=getCheckboxItem();
	if(aid==0) aid = getOneItem();
	location="?do=yuyue_admin&qstr="+qstr+"&aid="+aid+"&action=deal";
}
function deleteyuyue(aid){
	var qstr=getCheckboxItem();
	if(aid==0) aid = getOneItem();
	location="?do=yuyue_admin&qstr="+qstr+"&aid="+aid+"&action=delete";
}



function QuickEdit(aid, e, obj)
{
	LoadQuickDiv(e, '?do=yuyue_do&dopost=quickEdit&aid='+aid+'&rnd='+Math.random(), 'quickEdit', '440', '280px');
	ChangeFullDiv('show');
}
-->